<template>
  <p>{{ count }}</p>
  <p>{{ person.name }}</p>
  <button @click="update">更新</button>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "App",
  data() {
    return {
      count: 0,
      person: {
        name: "jack",
      },
    };
  },
  methods: {
    update() {
      debugger;
      this.count++;
    },
  },
});
</script>

<style lang="less"></style>
